/**
 * creation: 8-sep-2006
 */
package org.jfonia.musicxml.model;

import org.w3c.dom.Node;

/**
 * Degree (child of Harmony) indicates an alteration of a certain degree of a chord (.e.g. raise 5th)
 * <br> 
 * Note: formerly called 'Alteration' in xml2ly.
 * 
 * @author Wijnand
 */
public class Degree extends Element
{
	private int    degreeValue;	    // 1:root, 3:third, ...
	private int    degreeAlter;	    // 1:sharp, -1:flat, ... 
	private String degreeType;		// "alter", "add" or "subtract"
	
	public Degree(Node node)
	{
		super(node);
	}
	
	public Degree(Node node, int value, int alter, String type)
	{
		super(node);
		this.degreeValue = value;
		this.degreeAlter = alter;
		this.degreeType = type;
	}
	
	public int getDegreeAlter()
	{
		return degreeAlter;
	}

	public String getDegreeType()
	{
		return degreeType;
	}

	public int getDegreeValue()
	{
		return degreeValue;
	}

	public void setDegreeAlter(int degreeAlter)
	{
		this.degreeAlter = degreeAlter;
	}

	public void setDegreeType(String degreeType)
	{
		this.degreeType = degreeType;
	}

	public void setDegreeValue(int degreeValue)
	{
		this.degreeValue = degreeValue;
	}

}
